package com.nulldev.util.web.HttpServer3.extensions.sse.event.io;

import java.io.Closeable;
import java.io.IOException;

import com.nulldev.util.web.HttpServer3.extensions.sse.event.SSEvent;

public interface SSEventStreamReader extends Closeable {

	String getLastEventID();

	int getRetry();

	/**
	 * Blocks until read enough bytes to return an event
	 */
	SSEvent read() throws IOException;
}